import 'package:flutter_ahj_app/app/my/invoicing/fpHeader/bean/FP_PresetInvoice_Id_Bean.dart';
import 'package:flutter_ahj_app/app/my/invoicing/fpHeader/model/fpHeaderModel.dart';
import 'package:flutter_ahj_app/base/basewidget/viewmodel/BaseViewModel.dart';

class FPHeaderViewModel extends BaseViewModel<FPHeaderModel> {
  @override
  FPHeaderModel get initModel {
    // TODO: implement initModel
    return FPHeaderModel();
  }

  // save
  postSaveEvent({var params}) {
    model.postSaveEvent(params: params);
  }

  Stream saveStream() => model.saveStream;

// delete
  deleteEvent(int id) {
    model.deleteEvent(id);
  }

  Stream deleteStream() => model.deleteStream;
  // getData
  getDataEvent(int id) {
    model.getDataEvent(id);
  }

  Stream<FPPresetInvoiceIdBean> getDataStream() => model.getDataStream;
}
